<?php /* Smarty version 2.6.19, created on 2008-07-06 11:59:49
         compiled from profile/messages.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'profile/messages.tpl', 1, false),array('modifier', 'escape', 'profile/messages.tpl', 25, false),array('modifier', 'truncate', 'profile/messages.tpl', 27, false),)), $this); ?>
<?php echo smarty_function_config_load(array('file' => "index.conf"), $this);?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/doctype.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<head>
    <title>My messages</title>
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/include.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</head>

<body>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/logo.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/global_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "profile/inc/data.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><br />
<div><strong>My messages</strong></div><br />

<?php if ($this->_tpl_vars['course'] == 'from'): ?><a href="/profile/messages/">Input</a><?php else: ?><strong>Input</strong><?php endif; ?> 
<?php if ($this->_tpl_vars['course'] == 'to'): ?><a href="/profile/messages/output/">Output</a><?php else: ?><strong>Output</strong><?php endif; ?>

<?php if (sizeof ( $this->_tpl_vars['messages_list'] )): ?>
    <div>
	<?php $_from = $this->_tpl_vars['messages_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
	    <a href="/another/index/<?php echo $this->_tpl_vars['item']['user_id']; ?>
/"><?php echo $this->_tpl_vars['item']['user_login']; ?>
</a> <?php echo $this->_tpl_vars['item']['message_created']; ?>
<br />
        <?php if (! $this->_tpl_vars['item']['message_read']): ?><strong><?php endif; ?>
            <a href="/profile/message/<?php echo $this->_tpl_vars['item']['message_id']; ?>
/<?php echo $this->_tpl_vars['item']['user_id']; ?>
/"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['message_title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a>
        <?php if (! $this->_tpl_vars['item']['message_read']): ?></strong><?php endif; ?><br />
	    <?php echo ((is_array($_tmp=$this->_tpl_vars['item']['message_content'])) ? $this->_run_mod_handler('truncate', true, $_tmp, '80') : smarty_modifier_truncate($_tmp, '80')); ?>
...<br />
	    <?php if ($this->_tpl_vars['course'] == 'to'): ?><a href="/another/send/<?php echo $this->_tpl_vars['item']['user_id']; ?>
/">Answer</a> <a href="/profile/delmessage/<?php echo $this->_tpl_vars['item']['message_id']; ?>
/">Delete</a><?php endif; ?><hr />
	<?php endforeach; endif; unset($_from); ?>
	</div><br />
	<div>
    <!-- Paging -->
    <?php $_from = $this->_tpl_vars['paging']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
?>
        <?php if ($this->_tpl_vars['page'] == $this->_tpl_vars['key']): ?><?php echo $this->_tpl_vars['item']; ?>
<?php else: ?><a href="<?php echo $this->_tpl_vars['sys_action_path']; ?>
/<?php if ($this->_tpl_vars['course'] == 'from'): ?>output/<?php else: ?>input/<?php endif; ?><?php if (1 != $this->_tpl_vars['item']): ?><?php echo $this->_tpl_vars['key']; ?>
/<?php endif; ?>"><?php echo $this->_tpl_vars['item']; ?>
</a><?php endif; ?> 
    <?php endforeach; endif; unset($_from); ?>
    <!--// Paging -->
    </div>
<?php else: ?>
    <p>Empty</p>
<?php endif; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "profile/inc/return.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

</body>

</html>  